package Market;

import sim.engine.SimState;
import sim.engine.Steppable;

public class LSE implements Steppable {
	
		private double[] Loadprofile;
		private double[] LSEData;


	public LSE(double[][] ld, int j){

		LSEData = new double[26];
		
		for (int i=0; i<26; i++){		
			LSEData[i] = ld[j][i];
			//System.out.println(LSEData[i]);
		}	
	}
	
	public void step(SimState state){
	
		Loadprofile = new double[26];
		//System.out.println("----------------------------------");
		for (int i=0; i<26; i++){		
			Loadprofile[i] = LSEData[i];
			
			System.out.println(LSEData[i]);	
		}
		SubmitLoadProfile();
	}
	
	public double[] SubmitLoadProfile(){
		//System.out.println("----------------------------------");
		//for(int i=0; i<26; i++){
			
			//System.out.println(Loadprofile[i]);
		//}
		
	    return Loadprofile; 
	  }
}
